package com.hiedu.commons;

import lombok.Getter;

/**
 * @ProjectName: hi-app
 * @Titile: ServiceException
 * @Author: 86150
 * @Description: TODO
 */
public class ServiceException extends RuntimeException {
    @Getter //向外部提供一个getter方法，方便外部调用
    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }
}